package com.usian.article.feign;

import com.usian.model.behavior.pojos.ApBehaviorEntry;
import com.usian.model.behavior.pojos.ApLikesBehavior;
import com.usian.model.behavior.pojos.ApUnlikesBehavior;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("leadnews-behavior")
public interface BehaviorFeign {
    @PostMapping("/api/v1/behavior/findByUserId")
    ApBehaviorEntry findByUserId(@RequestParam Integer userId);

    @GetMapping("/api/v1/unlike_behavior/getUnLikesBehavior")
    ApUnlikesBehavior getUnLikesBehavior(@RequestParam Long articleId, @RequestParam Integer entryId);

    @GetMapping("/api/v1/likes_behavior/getLike")
    ApLikesBehavior getLike(@RequestParam Long articleId, @RequestParam Integer entryId);
}
